package cn.edu.scau.cmi.zhangjiankun.client;

import cn.edu.scau.cmi.zhangjiankun.simpleFactoryMethod.Meat;
import cn.edu.scau.cmi.zhangjiankun.simpleFactoryMethod.MeatFactory;

public class SimpleFactoryClient {
	public static void main(String[] args) {
		Meat beaf = MeatFactory.getMeat("beef");
		beaf.cook();
		
		Meat pork = MeatFactory.getMeat("pork");
		pork.cook();
		
		Meat chicken = MeatFactory.getMeat("chicken");
		chicken.cook();
	}
}
